<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path=request.getContextPath();
	String basePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="<%=basePath%>">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/index.js" ></script>
<link href="css/table.css" rel="stylesheet" />

</head>
<script type="text/javascript">

$(document).ready(function(){
	$(".gridtable tr td input").mouseenter(function(){
		$("#conHid").val($(this).parent().parent().children("td").eq(0).text());
		$("#ConductorName").val($(this).parent().parent().children("td").eq(1).text());
		$("#ConductorPass").val($(this).parent().parent().children("td").eq(2).text());
		$("#ConductorIDCard").val($(this).parent().parent().children("td").eq(3).text());
		$("#ConductorPhone").val($(this).parent().parent().children("td").eq(4).text());
		$("#ConductorEmail").val($(this).parent().parent().children("td").eq(5).text());
		
		$("#hiddelete").val($(this).parent().parent().children("td").eq(0).text());
	});
	
});
</script>
<body>
<div><a class="button border-black add" href="javascript:void(0)" onclick="return del(1,1)"> 添加 </a></div>
	<div id="AddConducor">
		<div id="layer">
			<div id="context">
				<form action="Ticket/ConductorInfoAction" method="post">
					<table class="tab">
						<tr>
							<th colspan="2" class="s"><strong>添加员工</strong></th>
						</tr>
						<tr>
							<td class="f">帐号：</td>
							<td><input type="text" class="b" name="ConductorName"/></td>
						</tr>
						<tr>
							<td class="f">密码：</td>
							<td><input type="password" name="ConductorPass" class="b"/></td>
						</tr>
						<tr>
							<td class="f">身份证号：</td>
							<td><input type="text" name="ConductorIDCard" class="b" /></td>
						</tr>
						<tr>
							<td class="f">手机号码：</td>
							<td><input type="text" name="ConductorPhone" class="b"/></td>
						</tr>
						<tr>
							<td class="f">邮箱：</td>
							<td><input type="text" name="ConductorEmail" class="b"/></td>
						</tr>
						<tr>
							<td colspan="2">
								<input type="reset" value="重置"  class="bt bt1_1"/>
								<input type="submit" value="添加"  class="bt bt1"/>
							</td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
	<div class="info">
		<strong>售票员的信息</strong>
	</div>
	<br />	
	<center>
		<table class="gridtable">
			<tr>
				<th>编号</th>
				<th>用户名</th>
				<th>密码</th>
				<th>身份证号</th>
				<th>手机号码</th>
				<th>邮箱</th>
				<th>操作</th>
			</tr>
			<!-- <tr>
				<td>1</td>
				<td>张三</td>
				<td>123</td>
				<td>440582199102230789</td>
				<td>13012312312</td>
				<td>123123123@qq.com</td>
				<td>
			      <a class="button border-main" href="javascript:void(0)"><span class="icon-edit"></span> 修改</a>
			      &nbsp;&nbsp;&nbsp;
			      <a class="button border-red" href="javascript:void(0)" onclick="return del(1,1)"> 删除 </a>
			    </td>
			</tr>
			<tr>
				<td>2</td>
				<td>张三</td>
				<td>123</td>
				<td>440582199102230789</td>
				<td>13012312312</td>
				<td>123123123@qq.com</td>
				<td>
			      <a class="button border-main" href="#add"><span class="icon-edit"></span> 修改</a>
			      &nbsp;&nbsp;&nbsp;
			      <a class="button border-red" href="javascript:void(0)" onclick="return del(1,1)"> 删除 </a>
			    </td>
			</tr>
			<tr>
				<td>3</td>
				<td>张三</td>
				<td>123</td>
				<td>440582199102230789</td>
				<td>13012312312</td>
				<td>123123123@qq.com</td>
				<td>
			      <a class="button border-main" href="#add"><span class="icon-edit"></span> 修改</a>
			      &nbsp;&nbsp;&nbsp;
			      <a class="button border-red" href="javascript:void(0)" onclick="return del(1,1)"> 删除 </a>
			    </td>
			</tr> -->
			<c:forEach var="conductor" items="${conductorList }">
				<tr>
<<<<<<< HEAD
					<td data-id="1">${conductor.conductorid }</td>
=======
					<td>${conductor.conductorid }</td>
>>>>>>> 66323295c0a5422d959df7e119a4199643334e9f
					<td>${conductor.conductorname }</td>
					<td>${conductor.conductorpass }</td>
					<td>${conductor.conductoridcard }</td>
					<td>${conductor.conductorphone }</td>
					<td>${conductor.conductoremail }</td>
					<td>
				      <input id="xg" type="button" class="button border-main" name="Acon" value="修改">
				      &nbsp;&nbsp;&nbsp;
				      <input type="button" class="button border-red" id="del"  value="删除 "> 
				    </td>
				</tr>
			</c:forEach>
		</table>
	</center>
	<div id="delete">
		<div id="deleteloayer">
			<div id="deleteContent">
				<form action="Ticket/ConductorInfoDelete" method="post">
				<input type="hidden" id="hiddelete" name="hiddelete">
					<h1>是否删除</h1>
					<input type="submit" class="OK" value="确定"/>
					<input type="reset" class="NO" value="取消"/>
				</form>
			</div>
		</div>
	</div>
	<div id="AddConducor1">
		<div id="layer1">
			<div id="context1">
				<form action="Ticket/ConductorInfoUpdate" method="post">
					<input type="hidden" id="conHid" name="conHid">
					<table class="tab1">
						<tr>
							<th colspan="2" class="s1"><strong>修改员工</strong></th>
						</tr>
						<tr>
							<td class="f1">帐号：</td>
							<td><input type="text" class="b1" name="ConductorName" id="ConductorName"/></td>
						</tr>
						<tr>
							<td class="f1">密码：</td>
							<td><input type="password"  class="b1" name="ConductorPass" id="ConductorPass"/></td>
						</tr>
						<tr>
							<td class="f1">身份证号：</td>
							<td><input type="text" class="b1" name="ConductorIDCard" id="ConductorIDCard"/></td>
						</tr>
						<tr>
							<td class="f1">手机号码：</td>
							<td><input type="text"  class="b1" name="ConductorPhone" id="ConductorPhone"/></td>
						</tr>
						<tr>
							<td class="f1">邮箱：</td>
							<td><input type="text"  class="b1" name="ConductorEmail" id="ConductorEmail"/></td>
						</tr>
						<tr>
							<td colspan="2">
								<input type="reset" value="重置"  class="bt1 bt1_1"/>
								<input type="submit" value="确认"  class="bt1 bt2"/>
							</td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
</body>
</html>